package com.sc.nft.entity.vo;

import com.sc.nft.enums.MarketTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@NoArgsConstructor
public class MySalestListVO {

    @ApiModelProperty("寄售id")
    private Long productId;

    @ApiModelProperty("藏品Id")
    private Long collectionId;

    @ApiModelProperty("配置Id")
    private Long configId;

    @ApiModelProperty("用户藏品Id")
    private Long userCollectionId;

    @ApiModelProperty("一级标题")
    private String firstTitle;

    @ApiModelProperty("序号")
    private String numbering;

    @ApiModelProperty("寄售价格")
    private String salesPrice;

    @ApiModelProperty("缩略图")
    private String creationContent;

    @ApiModelProperty("品质名称")
    private String showLevelName;

    @ApiModelProperty("作者")
    private String userCreator;

    @ApiModelProperty("作者Id")
    private Long userCreatorId;

    @ApiModelProperty("作者头像")
    private String creatorAvatarImg;

    @ApiModelProperty("分类 BRAND_INCUBATION:品牌孵化  FREE_MARKET:自由市场")
    private MarketTypeEnum marketType;


    public void setSalesPrice(BigDecimal salesPrice) {
        this.salesPrice = salesPrice.setScale(2,BigDecimal.ROUND_DOWN).toPlainString();
    }
}
